//tM4EX9xF6fZ2
package
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	import org.stw.bullfrog.ui.core.BSprite;
	
	public class main extends Sprite
	{
		public function main()
		{
			super();
			if (this.stage)
			{
				this.init();
			}
			else
			{
				this.addEventListener(Event.ADDED_TO_STAGE, this.addToStage);
			}
		}
		
		private function init() : void
		{
			// TODO: initialize the entire app	
			this.appStart();
		}
		
		private function addToStage(event:Event) : void
		{
			this.removeEventListener(Event.ADDED_TO_STAGE, this.addToStage);
			this.init();
		}
		
		private function appStart() : void
		{
			// TODO: Start the flow
			var s:BSprite = new BSprite();
			
			this.addChild(s);
			
		}
	}
}